<script id="app-new-dialog-template" type="text/template">
   <div class="form-caption">Nombre</div>
   <?php echo CHtml::textField('data-name', '', array('class' => 'form-input')); ?>
   <div class="form-caption">Predecesor</div>
   <?php echo CHtml::dropDownList('data-predecessor', '', array(), array('class' => 'form-list', 'empty' => 'Sin Antecesor')); ?>
   <div class="form-caption">Inicio Programado</div>
   <?php echo CHtml::textField('data-pr-begin-date', '', array('class' => 'date-input')); ?>
   <div class="form-caption">Fin Programado</div>
   <?php echo CHtml::textField('data-pr-end-date', '', array('class' => 'date-input')); ?>
   <div class="form-caption">Actividad</div>
   <?php echo CHtml::checkBox('data-activity', false, array('class' => 'form-checkbox', 'rel' => 0)); ?>
   <button id="new-dialog-submit">Crear tarea</div>
   
   
   
</script>
